﻿using SnowTech.SmartTms.Repository.Core;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SnowTech.SmartTms.Repository.Domain
{
    /// <summary>
    /// 车辆管理表
    /// </summary>
    [Table("TmsVehicle")]
    public class TmsVehicle : StringEntity
    {
        public TmsVehicle()
        {
            this.VehicleModel = string.Empty;
            this.PlateNumber = string.Empty;
            this.Name = string.Empty;
            this.Company = string.Empty;
            this.VehicleColor = string.Empty;
            this.OperationNumber = string.Empty;
            this.Maintain = 0;
            this.VehiclePhotos = string.Empty;
            this.InsuranceCardPhoto = string.Empty;
            this.CreateTime = DateTime.Now;
            this.CreateUserId = string.Empty;
            this.UpdateTime = DateTime.Now;
            this.UpdateUserId = string.Empty;
        }
        [Description("厂牌型号")]
        public string VehicleModel { get; set; }//厂牌型号
        [Description("车牌号")]
        public string PlateNumber { get; set; }//车牌号
        [Description("司机姓名")]
        public string Name { get; set; }//司机姓名
        [Description("所属公司")]
        public string Company { get; set; }//所属公司
        [Description("车型长")]
        public decimal Lengths { get; set; }//车型长
        [Description("车型宽")]
        public decimal Widths { get; set; }//车型宽
        [Description("车型高")]
        public decimal Heights { get; set; }//车型高
        [Description("车辆颜色")]
        public string VehicleColor { get; set; }//车辆颜色
        [Description("购置日期")]
        public DateTime AcquisitionDate { get; set; }//购置日期
        [Description("营运证号")]
        public string OperationNumber { get; set; }//营运证号
        [Description("保险到期日期")]
        public DateTime DurationInsurance { get; set; }//保险到期日期
        [Description("年检到期日期")]
        public DateTime ExpirationYear { get; set; }//年检到期日期
        [Description("保养公里数")]
        public int Maintain { get; set; }//保养公里数
        [Description("车辆照片")]
        public string VehiclePhotos { get; set; }//车辆照片
        [Description("保险卡照片")]
        public string InsuranceCardPhoto { get; set; }//保险卡照片
        [Description("创建时间")]
        public DateTime CreateTime { get; set; }//创建时间
        [Description("创建人")]
        public string CreateUserId { get; set; }//创建人
        [Description("修改时间")]
        public DateTime UpdateTime { get; set; }//修改时间
        [Description("修改人")]
        public string UpdateUserId { get; set; }//修改人

    }
}
